package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 评论管理对象 a_comment
 *
 * @author system
 * @date 2025-02-23
 */
public class AComment extends TreeEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 头像 */
    @Excel(name = "头像")
    private String comImg;

    /** 名称 */
    @Excel(name = "名称")
    private String comName;

    /** 评价内容 */
    @Excel(name = "评价内容")
    private String comContent;

    /** 标签 */
    @Excel(name = "标签")
    private String comLabel;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Integer likeNum;

    /** 逻辑删除 */
    private String delFlag;

    /** 是否上线 */
    @Excel(name = "是否上线")
    private Boolean isShow;

    /** 排序 */
    @Excel(name = "排序")
    private Integer orderNum;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setComImg(String comImg)
    {
        this.comImg = comImg;
    }

    public String getComImg()
    {
        return comImg;
    }
    public void setComName(String comName)
    {
        this.comName = comName;
    }

    public String getComName()
    {
        return comName;
    }
    public void setComContent(String comContent)
    {
        this.comContent = comContent;
    }

    public String getComContent()
    {
        return comContent;
    }
    public void setComLabel(String comLabel)
    {
        this.comLabel = comLabel;
    }

    public String getComLabel()
    {
        return comLabel;
    }
    public void setLikeNum(Integer likeNum)
    {
        this.likeNum = likeNum;
    }

    public Integer getLikeNum()
    {
        return likeNum;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public Boolean getIsShow() {
        return isShow;
    }

    public void setIsShow(Boolean isShow) {
        this.isShow = isShow;
    }

    @Override
    public Integer getOrderNum() {
        return orderNum;
    }

    @Override
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("comImg", getComImg())
            .append("comName", getComName())
            .append("comContent", getComContent())
            .append("comLabel", getComLabel())
            .append("likeNum", getLikeNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("isShow", getIsShow())
            .append("numSoft", getOrderNum())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .toString();
    }
}
